hackerrank java substring problem

welcome to shbcf.ru